maintainer="Michał Polański <michal@polanski.me>"
pkgname=py3-trove-classifiers
pkgver=2024.10.21.16
pkgrel=0
pkgdesc="Canonical source for classifiers on PyPI"
url="https://github.com/pypa/trove-classifiers"
license="Apache-2.0"
arch="noarch"
makedepends="py3-calver py3-gpep517 py3-installer py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/pypa/trove-classifiers/archive/$pkgver/py3-trove-classifiers-$pkgver.tar.gz"
builddir="$srcdir/trove-classifiers-$pkgver"
options="!check" #pytest circular dep

prepare() {
	default_prepare

	echo "Version: $pkgver" > PKG-INFO
}

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/trove_classifiers-$pkgver-py3-none-any.whl
}

sha512sums="
0ead69cb9b29ab1144ac82655f50d0dd722668399aee68d30eeef31e3d9870c65cc0535362d866f90a121c8c78669d650e2955abb349c31d913a222756cba4d1  py3-trove-classifiers-2024.10.21.16.tar.gz
"
